#include <QCoreApplication>
#include <iostream>
#include <math.h>
using namespace std;

int main()
{
   int N, f=1, i;
   float x, k;
         cout <<"Vvedite x: \n";
         cin >>x;
         cout <<"Vvedite N: \n";
         cin >>N;
            k=1+x;
            for (i=2; i<N; i++)
                f=f*i;
                k=k+powf((float) x,(int) i)/f;
                    cout <<"k="<<k;

    return 0;
}
